﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MylyConsume.aspx.cs" Inherits="MyLy_MylyConsume" %>

<%@ Register src="../Controls/Head.ascx" tagname="Head" tagprefix="uc1" %>

<%@ Register src="../Controls/Foot.ascx" tagname="Foot" tagprefix="uc2" %>

<%@ Register src="../Controls/MylyLeft4.ascx" tagname="MylyLeft" tagprefix="uc3" %>

<%@ Register src="../Controls/MylyRight.ascx" tagname="MylyRight" tagprefix="uc4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<link href="../css/website1.css" rel="stylesheet" type="text/css" />
<link href="../css/Myly.css" rel="stylesheet" type="text/css" />
<link href="../css/linkStyle.css" rel="stylesheet" type="text/css" />
<link href="../Scripts/plugins/jquery.alerts/jquery.alerts.css" rel="stylesheet" type="text/css" />
       
    <title>立言咨询平台-消费明细查询</title>
    <script type="text/javascript" src="../Scripts/jquery-min-lastest.js"></script>
    <script src="../Scripts/jquery-ui-all-min-lastest.js" type="text/javascript"></script>    
    <script type="text/javascript" src="../Scripts/aboutverifycode.js"></script>
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>
    <script src="../Scripts/plugins/jquery.alerts/jquery.alerts.js" type="text/javascript"></script>
    <% if (false)
       {%><script src="../Scripts/jquery-vsdoc-lastest.js" type="text/javascript"></script>
    <% }%>
    
    <script type="text/javascript">
           $(function(){
                 $("input[id*=ImgBtn_Query]").bind("click", function(){
                      var $startTime = $("input[id*=Txt_StartTime]").val();
                      var $endTime = $("input[id*=Txt_EndTime]").val();
                        
                      if ($startTime == "") {
                            jAlert("开始时间不能为空！","提示");
                            return false;
                      }
                    
                      if ($endTime == "") {
                             jAlert("结束时间不能为空！","提示");
                             return false;
                      }
                     
                  return true;
                 });
           });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManagerConsume" runat="server">
    </asp:ScriptManager>
    <div id="big">
    <uc1:Head ID="Head2" runat="server" />
    <div id="main">
           <div class="kong1"></div>
           <uc3:MylyLeft ID="MylyLeft1" runat="server" />
           <div class="kong1"></div>
           <div id="middle">
                 <div id="m1"><div id="m11"><a href="Mylyindex.aspx">&nbsp; &nbsp;我的立言平台</a><a href="MylyBuycard.aspx">&nbsp; &nbsp;>>购卡记录</a></div></div>
                     <table class="s1">
                         <tr>
                             <td class="s11" >
                                 时间段：</td>
                             <td class="s12">
                                 <asp:TextBox ID="Txt_StartTime" runat="server" BorderWidth="1px" Width="130px"></asp:TextBox>
                             </td>
                             <td class="s13">
                                 到</td>
                             <td class="s14">
                                 <asp:TextBox ID="Txt_EndTime" runat="server" BorderWidth="1px" Width="130px"></asp:TextBox>
                             </td>
                             <td class="s15">
                                  <asp:ImageButton ID="ImgBtn_Query" runat="server" 
                         ImageUrl="~/Images/MylyImg/chaxun.gif" onclick="ImgBtn_Query_Click" />
                             </td>
                         </tr>
                     </table>
                 <div class="xiankong"></div>
                 
                 <%-- DataGrid --%>
                 <asp:UpdatePanel ID="UpdatePanelPurchaseOnlineStep2" runat="server" EnableViewState="false">
                     <ContentTemplate>
                         <div id="container" >
                         <asp:GridView ID="Grid_MyConsume" runat="server" BackColor="White" AutoGenerateColumns="False"
                             BorderColor="#000066" BorderStyle="Solid" BorderWidth="1px" CellPadding="5" 
                             EmptyDataText="没有数据" Width="530px">
                             <FooterStyle BackColor="White" ForeColor="#000066" />
                             <RowStyle ForeColor="#000066" HorizontalAlign="Center" />
                             <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Center" />
                             <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                             <HeaderStyle BackColor="#142047" Font-Bold="True" ForeColor="White" 
                                 Font-Size="13px" Height="30px" />
                             <AlternatingRowStyle BackColor="#E8F3FF" />
                             <%-- 绑定列 --%>
                         
                             <%-- S_PayNO,S_MobileNO,S_CardNO,S_CardPoints,S_PayMoney,S_PayType,S_Time--%>
                               <EmptyDataRowStyle Font-Size="13px" Width="13px" />
                               <EditRowStyle Width="13px" />
                               <Columns>
                               <%-- <asp:BoundField DataField="S_PayNO" HeaderText="支付流水号" />--%>
                            <%--    <asp:BoundField DataField="S_MobileNO" HeaderText="手机号" />--%>
                                <asp:BoundField DataField="C_AccountName" HeaderText="用户帐号" >
                                    <ItemStyle Font-Size="12px" Height="30px" />
                                   </asp:BoundField>
                                <asp:BoundField DataField="C_EndTime" HeaderText="时间" >
                                    <ItemStyle Font-Size="12px" Height="30px" />
                                   </asp:BoundField>
                                <asp:BoundField DataField="C_Type" HeaderText="类型" >
                                    <ItemStyle Font-Size="12px" Height="30px" />
                                   </asp:BoundField>
                                <asp:BoundField DataField="C_DeductPoints" HeaderText="扣除点数" >
                                    <ItemStyle Font-Size="12px" Height="30px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="C_ServicesLawyer" HeaderText="服务律师" >
                                    <ItemStyle Font-Size="12px" Height="30px" />
                                </asp:BoundField>
                              </Columns>
                         </asp:GridView>
                           <br />
                        <asp:LinkButton ID="lnkbtnFrist" runat="server" OnClick="lnkbtnFrist_Click" CssClass="lylink">首页</asp:LinkButton> 
                        <asp:LinkButton ID="lnkbtnPre" runat="server" OnClick="lnkbtnPre_Click" Text="<<上一页" CssClass="lylink"></asp:LinkButton> 
                        <asp:Label ID="lblCurrentPage" runat="server"></asp:Label> 
                        <asp:LinkButton ID="lnkbtnNext" runat="server" OnClick="lnkbtnNext_Click" CssClass="lylink">下一页>></asp:LinkButton> 
                        <asp:LinkButton ID="lnkbtnLast" runat="server" OnClick="lnkbtnLast_Click" CssClass="lylink">尾页</asp:LinkButton> 
                        
                 </div>            
                     </ContentTemplate>
                     <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ImgBtn_Query" EventName="click" />
                     </Triggers>
                 </asp:UpdatePanel>
                 跳转到第<asp:DropDownList ID="ddlCurrentPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DdlCurrentPage_SelectedIndexChanged"> 
                        </asp:DropDownList>页
                 <div class="xiankong"></div>
           </div>
           <div class="kong1"></div>
           <uc4:MylyRight ID="MylyRight1" runat="server" />
    </div>
    <uc2:Foot ID="Foot1" runat="server" /> 
    </div>
    </form>
</body>
</html>
